package com.zkthink.ceres.applet.product.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import lombok.Data;

/**

@Author cmz
@Date 2024-05-06 13:49
*/
/**
    * 商品分类表
    */
@Data
@TableName(value = "ceres_product_category")
public class CeresProductCategory {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 商户id
     */
    @TableField(value = "tenant_code")
    private String tenantCode;

    /**
     * 类目简称
     */
    @TableField(value = "short_name")
    private String shortName;

    /**
     * 类目名称
     */
    @TableField(value = "category_name")
    private String categoryName;

    /**
     * 类目关联页面路径
     */
    @TableField(value = "category_path")
    private String categoryPath;

    /**
     * 分类图片，目前只有3级类目才有图片
     */
    @TableField(value = "category_img")
    private String categoryImg;

    /**
     * 层级
     */
    @TableField(value = "depth")
    private Integer depth;

    /**
     * 父类名称
     */
    @TableField(value = "parent_name")
    private String parentName;

    /**
     * 父类id
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 排序值
     */
    @TableField(value = "sort_order")
    private Integer sortOrder;

    /**
     * 状态：1-启用 0-删除
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建人id
     */
    @TableField(value = "create_user")
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 最后修改人id
     */
    @TableField(value = "update_user")
    private Long updateUser;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(value = "is_course")
    private Integer isCourse;

    /**
     * 逻辑删除 1-删除 0-未删除
     */
    @TableField(value = "is_delete")
    @TableLogic(value = "0",delval = "1")
    private Integer isDelete;

//    @TableField(exist = false)
//    private String title;

    public static final String COL_ID = "id";

    public static final String COL_TENANT_CODE = "tenant_code";

    public static final String COL_SHORT_NAME = "short_name";

    public static final String COL_CATEGORY_NAME = "category_name";

    public static final String COL_CATEGORY_PATH = "category_path";

    public static final String COL_CATEGORY_IMG = "category_img";

    public static final String COL_DEPTH = "depth";

    public static final String COL_PARENT_NAME = "parent_name";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_SORT_ORDER = "sort_order";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_USER = "create_user";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_USER = "update_user";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";
}